introduced change that fixes issue #91 - #128
Open
jjijon7000 wants to merge 3 commits into
Open
Conversation
natalialuzuriaga
requested changes
Jul 16, 2026
natalialuzuriaga
left a comment
Contributor
There was a problem hiding this comment.
Before approving, just wanted to ask about the current implementation choices and see whether other alternate approaches could be better suited. I also defer to Sachin though since he wrote the existing code!
Contributor
|
Last thing: as specified in our OSPO Gen AI Policy that was just shipped, please fill out this information about Gen AI usage and add this to your PR description: AI Usage
If checked, please provide an explanation on how AI was used in the development of this pull request:
|
sachin-panayil
requested changes
Jul 20, 2026
sachin-panayil
left a comment
Collaborator
There was a problem hiding this comment.
the logic is great but following along with Natalias comment, we should stick with the design patterns unless truly necessary
Contributor
Author
|
@copilot resolve the merge conflicts in this pull request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR automates populating the
versionfield incode.jsonfrom the latest GitHub release while preserving the existing merge pattern insrc/main.ts.What changed
existingCodeJSONfromcalculateMetaData()insrc/helper.ts.versionfallback/merge logic intosrc/main.ts, following the same pattern already used forfeedbackMechanismandSBOM.src/__tests__/unit/helper.test.tssrc/__tests__/unit/main.test.tsNotes
repos.get()does not include latest release data.main.tspreserves the existingversionfromcode.json.Validation
npx jest src/__tests__/unit/helper.test.ts src/__tests__/unit/main.test.tsAI Usage
If checked, please provide an explanation on how AI was used in the development of this pull request:
Description: Used ChatGPT (Codex) to refactor the PR to align with the existing project design patterns based on reviewer feedback.
Type of assistance:
Code generation
Documentation
Debugging
Testing
Refactoring
Other:
Scope of usage:
src/main.ts,src/helper.ts,src/__tests__/unit/helper.test.ts,src/__tests__/unit/main.test.tsAI System used:
ChatGPT
Claude
Gemini
GitHub Copilot
Level of modification: - [ ] As-is - [x] Modified - [ ] Used as inspiration
Prompts used: "Please refactor my code to address reviewer feedback on my PR... revert the function signature in helper.ts, move the merging logic to main.ts, and update the corresponding unit tests."